{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<style>
#huiedit{
	background-color: #1ab394;
	color: #FFFFFF;
}
#huidel{
	background-color: #ed5565;
	color: #FFFFFF;
}
#hui{
	 width: 50px;
        height: 50px;
}
</style>
</head>

<body class="gray-bg">
   <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>会议详情</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Meeting/meetingAdminAdd')}" class="btn btn-primary btn-xs">添加内容</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm refresh" ><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                        </div>

						<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="50" data-filter=#filter>
                            <thead>
                                    <tr>
                                        <th>会议ID</th>
                                        <th>会议名称</th>
                                        <th>会议地址</th>
                                        <th>联系电话</th>
                                        <th>大会举办方</th>
                                        <th>会议日期</th>
                                        <th>状态</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	{foreach name="res" id="vo" key="key"}
                                    <tr class="gradeX">
                                        <td>{$vo.id}</td>
                                        <td>{$vo.title}</td>
                                        <td>{$vo.address}</td>
                                        <td>{$vo.mobile}</td>
                                        <td>{$vo.company}</td>
                                       
                                        <td>{$vo.going_date|date="Y/m/d",###} - {$vo.going_date_end|date="Y/m/d",###}</td>
                                        <td><?php if($vo['status'] == '0'): ?>
                                            <a href="{:url('Meeting/meetingStatus')}?id={$vo.id} & status=1"  style=" cursor: pointer;color:red;" >已关闭</a>
                                        <?php endif; if($vo['status'] == '1'): ?>
                                            <a href="{:url('Meeting/meetingStatus')}?id={$vo.id} & status=0"><span id="huiedit">正在进行</span></a>
                                        <?php endif; ?></td>
                                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            <a href="{:url('admin/Meeting/meetingAdminEdit',['id'=>$vo.id])}" class="btn btn-white btn-sm">编辑 </a>
                                            <a href="{:url('admin/Meeting/meetingAdminDel',['id'=>$vo.id])}" class="btn btn-white btn-sm">删除 </a>
                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                                <tfoot hidden="hidden">
                                    <tr>
                                        <td colspan="5">
                                            <ul class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>   
                        </table>
                        <div class="item-page" style="padding-left:36%;">
                        
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        
    {include file="public/_footer" /}
	<script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
		});
	</script>
    <script>
    $(document).ready(function(){
        $(".importStaff").click(function(){
            $('.importStaffFile').trigger("click"); 
        })
        
        $(".importStaffFile").change(function(){
          $(".staffFile").submit()
        });
    })
    </script>
</body>
</html>
